import lang from 'element-plus/lib/locale/lang/zh-cn'
import 'dayjs/locale/zh-cn'
import {
    locale,
    ElButton,
    ElForm,
    ElFormItem,
    ElInput,
    ElIcon,
    ElBreadcrumb,
    ElBreadcrumbItem,
    ElMenu,
    ElSubmenu,
    ElMenuItem,
    ElSelect,
    ElOption,
    ElCascader,
    ElTable,
    ElTableColumn,
    ElPagination,
    ElResult,
    ElDialog,
    ElImage,
    ElDatePicker,
    ElCard,
    ElUpload,
    ElCheckbox
} from 'element-plus';



export const element = [
    ElButton,
    ElForm,
    ElFormItem,
    ElInput,
    ElIcon,
    ElBreadcrumb,
    ElBreadcrumbItem,
    ElMenu,
    ElSubmenu,
    ElMenuItem,
    ElSelect,
    ElOption,
    ElCascader,
    ElTable,
    ElTableColumn,
    ElPagination,
    ElResult,
    ElDialog,
    ElImage,
    ElDatePicker,
    ElCard,
    ElUpload,
    ElCheckbox
]

import.meta.env.DEV ? locale(lang) : locale.use(lang)
